import request from '@/utils/request1.js'
//  登录接口,获取Token
//  请求参数：登录名、密码
export function login(param) {
  return request({
    url: '/login.do',
    method: 'POST',
    data: {
      param: param
    }
  })
}

// 获取个人信息、权限
// 请求参数：token
export function getInfo(param, url) {
  return request({
    // url: '/menu2.do',
    // url: 'https://easy-mock.com/mock/5ba128744442b90220354ea0/manage/ucbms/menu2.do',
    url: '/loginCenter/system/queryUserPower',
    method: 'post'
  })
}

/* // 登出
export function logout(param) {
  return request({
    url: '/signOut.do',
    method: 'post',
    data: {
      param: param
    }
  })
} */

// 登出
export function logout() {
  return request({
    url: '/loginCenter/system/logout',
    method: 'post'
  })
}
